package day10.two01;

public class text {
    public static void main(String[] args) {
        adteacher ad = new adteacher();
        jcteacher jc = new jcteacher();

        ad.setName("霍金");
        ad.setAge(99);

        jc.setName("马克思");
        jc.setAge(98);

        System.out.println(ad.getName()+" "+ad.getAge());
        ad.teach();
        System.out.println(jc.getName()+" "+jc.getAge());
        jc.teach();
    }
}
